/**
 * 用于定义线程间通信的IPC事件名称的对象
 */

/**
 * 主进程通信事件名
 */
const MAIN = {
  socketOpen: 'socket-open',

  setCasePath: 'set-case-path',

  dataSync: 'data-sync-main',
  editorSizeSync: 'editor-size-sync',
  editorLoadFinish: 'editor-load-finish',
  navigationSizeSync: 'navigation-size-sync',
  generateEditorThumb: 'generate-editor-thumb',
  openExpandScreen: 'open-expand-screen',
  closeExpandScreen: 'close-expand-screen',
  mediaStateSync: 'media-state-sync',

  saveFilePath: 'save-file-path',
  getSelectedNode: 'get-selected-node'
}
/**
 * 渲染进程通信事件名
 */
const RENDERER = {
  socketConnected: 'socket-connected',

  dataSync: 'data-sync-renderer',
  editorSizeSync: 'editor-size-sync',
  navigationSizeSync: 'navigation-size-sync',
  receiveEditorProps: 'receive-editor-props',
  receiveEditorThumb: 'receive-editor-thumb',
  mediaStateSync: 'media-state-sync',
  windowResize: 'window-resize',
  windowClose: 'window-close',

  savedDirectory: 'saved-directory',
  getSelectedNode: 'get-selected-node',
  catalogueOpenFile: 'catalogue-open-file'
}

export default {
  MAIN,
  RENDERER
}
